package com.hui.injection;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserDao {

    /**
     * 测试sql注入攻击
     */
    @Select("SELECT * FROM test;DELETE FROM test WHERE id = 2;")
    List selectByUserName();

}
